//
//  MySwitch.m
//  UI05_UIControl子类
//
//  Created by LGC on 16/3/15.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "MySwitch.h"

@implementation MySwitch

#pragma mark - Overwrite init 
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self config];
    }
    return self;
}


#pragma mark - config
- (void)config {
    // onTintColor
    self.onTintColor = [UIColor redColor];
    
    // tintColor 关闭时的颜色
    self.tintColor = [UIColor blueColor];
    
    // 中间按钮颜色
    self.thumbTintColor = [UIColor purpleColor];
    
    
}

@end
